#ifndef NETSETWINDOW_H
#define NETSETWINDOW_H

#include <QWidget>
#include <QHostInfo>
#include <QTcpServer>
#include <QTcpSocket>
#include <QUdpSocket>
namespace Ui {
class Netsetwindow;
}

class Netsetwindow : public QWidget
{
    Q_OBJECT

public:
    explicit Netsetwindow(QWidget *parent = 0);
    ~Netsetwindow();

    void initWindow();

private slots:
    void on_conButton_clicked();

    void on_sendButton_clicked();

private:
    Ui::Netsetwindow *ui;
    QTcpServer * s_socket;
    QTcpSocket * c_socket;

    QTcpSocket * client_socket;
    QUdpSocket * udp_socket;
};

#endif // NETSETWINDOW_H
